const express = require('express')
const app = express()

app.set('views', './templates')
app.set('view engine', 'ejs')

app.get('/', (req, res) => {
    res.render('site/index', {
        title: '首页'
    })
})

app.listen(8899, () => {
    console.log('listen on 8899');
})